package com.njupt.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: XJL
 * @Description:展示注册与登陆页面的controller
 * @Date: Create in 15:51 2018/6/4
 * @Modified By:
 **/
@Controller
public class PageController {

    @RequestMapping("/page/register")
    public String showRegister(){
        return "register";
    }

    @RequestMapping("/page/login")
    public String showLogin(String reidrect, Model model){
        model.addAttribute("redirect",reidrect);
        return "login";
    }
}
